package edu.cth.scrabbit.client.view;


import javax.swing.JEditorPane;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextPane;
import javax.swing.SwingUtilities;
import org.jdesktop.application.Application;

import edu.cth.scrabbit.cloudgarden.layout.AnchorConstraint;
import edu.cth.scrabbit.cloudgarden.layout.AnchorLayout;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
 * Builder, which is free for non-commercial use. If Jigloo is being used
 * commercially (ie, by a corporation, company or business for any purpose
 * whatever) then you should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details. Use of Jigloo implies
 * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
 * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
 * ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class AboutDialog extends javax.swing.JDialog {
	private JLabel versionLabel;
	private JLabel namesLabel;
	private JTextPane thanksPane;
	private JTextPane aboutPane;
	private JLabel madeByLabel;

	/**
	 * Auto-generated main method to display this JDialog
	 */

	public AboutDialog(JFrame frame) {
		super(frame);
		initGUI();
	}

	private void initGUI() {
		try {
			AnchorLayout thisLayout = new AnchorLayout();
			getContentPane().setLayout(thisLayout);
			{
				thanksPane = new JTextPane();
				getContentPane().add(thanksPane, new AnchorConstraint(680, 975, 931, 376, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				thanksPane.setPreferredSize(new java.awt.Dimension(276, 72));
				thanksPane.setName("thanksPane");
			}
			{
				aboutPane = new JTextPane();
				getContentPane().add(
						aboutPane,
						new AnchorConstraint(57, 586, 204, 27,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL));
				aboutPane.setPreferredSize(new java.awt.Dimension(258, 42));
				aboutPane.setName("aboutPane");
			}
			{
				namesLabel = new JLabel();
				getContentPane().add(namesLabel, new AnchorConstraint(582, 972, 638, 586, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				namesLabel.setPreferredSize(new java.awt.Dimension(178, 16));
				namesLabel.setName("namesLabel");
			}
			{
				madeByLabel = new JLabel();
				getContentPane().add(madeByLabel, new AnchorConstraint(505, 703, 561, 597, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
				madeByLabel.setPreferredSize(new java.awt.Dimension(49, 16));
				madeByLabel.setName("madeByLabel");
			}
			{
				versionLabel = new JLabel();
				getContentPane().add(
						versionLabel,
						new AnchorConstraint(903, 176, 959, 27,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL,
								AnchorConstraint.ANCHOR_REL));
				versionLabel.setPreferredSize(new java.awt.Dimension(69, 16));
				versionLabel.setName("versionLabel");
			}
			this.setSize(477, 324);
			Application.getInstance().getContext().getResourceMap(getClass())
					.injectComponents(getContentPane());
		} catch (Exception e) {
			e.printStackTrace();
		}
		aboutPane.setEditable(false);
		thanksPane.setText("This application uses Den Stora Svenska Ordlistan (www.dsso.se) which is Copyrighted by G�ran Andersson under the (CC BY-SA 3.0) license");
		thanksPane.setEditable(false);
		
	}
}
